package com.hmkx.solr.funtion;

import org.apache.lucene.queries.function.ValueSource;
import org.apache.solr.search.FunctionQParser;
import org.apache.solr.search.SyntaxError;
import org.apache.solr.search.ValueSourceParser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class HmkxValueParser extends ValueSourceParser {
    final static Logger log= LoggerFactory.getLogger(HmkxValueParser.class);

    @Override
    public ValueSource parse(FunctionQParser fq) throws SyntaxError {
        return new FunctionValueSource(fq.parseValueSourceList());
    }
}
